package com.aimao.blog.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

public class Admin implements Serializable {
    private String id;

    private String name;

    private String password;

    private String mainimg;

    @JSONField(format = "yyyy/MM/dd HH:mm:ss")
    private Date lasttime;

    public Admin(String id, String name, String password, String mainimg, Date lasttime) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.mainimg = mainimg;
        this.lasttime = lasttime;
    }

    public Admin() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getMainimg() {
        return mainimg;
    }

    public void setMainimg(String mainimg) {
        this.mainimg = mainimg == null ? null : mainimg.trim();
    }

    public Date getLasttime() {
        return lasttime;
    }

    public void setLasttime(Date lasttime) {
        this.lasttime = lasttime;
    }


    @Override
    public String toString() {
        return "Admin{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", mainimg='" + mainimg + '\'' +
                ", lasttime=" + lasttime +
                '}';
    }
}